const numberOptions: string = '0123456789';

const charsOptions: string = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";

export class RandomUtil {
  static generateRandomNumberStr(length: number): string {
    let outString: string = '';
    for (let i = 0; i < length; i++) {
      outString += numberOptions.charAt(Math.floor(Math.random() * numberOptions.length));
    }
    return outString;
  }

  static generateCharsStr(length: number): string {
    let outString: string = '';
    for (let i = 0; i < length; i++) {
      outString += charsOptions.charAt(Math.floor(Math.random() * charsOptions.length));
    }
    return outString;
  }
}

